Fix vulnerable System.Security.Cryptography.Xml via updating Microsoft.Extensions to 10.0.7 - #1260
Conversation
|
Due to reports of incompatibilities with ASP.NET Core Data Protection (see dotnet/aspnetcore#66335), converting this to draft until it's confirmed stable (sounds like that will be in 10.0.7). Note that any users affected can still override the installed version of this package manually to address the vulnerability concern, particularly if they are not using ASP.NET Core Data Protection. This is not a vulnerability in our library. Edit: We are currently using 8.0.3 in this PR, not 10.0.6, but out of caution I'm still going to hold off a few days just in case there are users regularly running off latest master. I am unsure if the effect is the same for ASP.NET Core Data Protection 8.x. Also, separately I will look into upgrading our packages from 8.x to 10.x after this is merged. |
15438bd to
7e5057f
Compare
|
10.0.7 was released with the regression fix, and it pulls in the vulnerability-fixed version of System.Security.Cryptography.Xml transitively, so I went ahead and upgraded all of our Microsoft.Extensions libraries to be on the same 10.0.7 version. That let me remove the manual installation of this package from the prior commit. Note that just like the 8.x versions of the Microsoft.Extensions packages, the 10.x versions support netstandard2.0 and net462 just like our baseline targets. |
There was a problem hiding this comment.
Pull request overview
This PR updates the centralized NuGet package version properties to address a transitive vulnerability warning involving System.Security.Cryptography.Xml by bumping Microsoft.Extensions.* package versions.
Changes:
- Introduces a single
MicrosoftExtensionsParentVersionproperty and updates relatedMicrosoft.Extensions.*version properties to10.0.7. - Aligns the previously mixed
8.0.0/8.0.1Microsoft.Extensions.*versions to a single version value.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
NightOwl888
left a comment
There was a problem hiding this comment.
Looks good to me. Thanks.
Fixes a vulnerability warning with System.Security.Cryptography.Xml
Description
Updates Microsoft.Extensions libraries to 10.0.7 to fix a transitive vulnerability: GHSA-37gx-xxp4-5rgx